export const imageExtension = ['jpg', 'jpeg', 'png', 'gif'];
export const mediaExtension = [
  'mp3',
  'wav',
  'aac',
  'wam',
  'ogg',
  'mp4',
  'avi',
  'mkv',
  'wmv',
  'webm',
  'mpg',
  'mpeg',
];
export const fileExtension = [
  'json',
  'text',
  'md',
  'pdf',
  'doc',
  'docx',
  'csv',
  'xlsx',
];

export const fileReg = new RegExp(
  `\\.(${[...imageExtension, ...mediaExtension, ...fileExtension].join('|')})$`,
  'i',
);
